//
//  NMPOHomeNavView.swift
//  NMPO
//
//  Created by PowerfullClean on 2023/10/31.
//

import UIKit

class NMPOHomeNavView: NMPONavView {
    
    override func nmpo_initViews() {
        addSubview(nmpo_bgView)
        super.nmpo_initViews()
        addSubview(nmpo_titleView)
        nmpo_bgView.snp.makeConstraints { make in
            make.edges.equalToSuperview()
        }
        nmpo_titleView.snp.makeConstraints { make in
            make.centerX.equalToSuperview()
            make.size.equalTo(CGSize(width: 134, height: 24))
            make.centerY.equalTo(nmpo_leftButton.snp.centerY)
        }
        nmpo_leftButton.setImage(UIImage(named: "nmpo_nav_HomeLeft"), for: .normal)
    }
    
    override func nmpo_buttonClick(sender: UIButton) {
        nmpo_viewGetVController?.navigationController?.pushViewController(NMPOSettingViewController(), animated: true)
    }
    
    lazy var nmpo_bgView: UIImageView = {
        let nmpo_bgView = UIImageView(image: UIImage(named: "nmpo_nav_HomeBg"))
        return nmpo_bgView
    }()
    lazy var nmpo_titleView: UIImageView = {
        let nmpo_titleView = UIImageView(image: UIImage(named: "nmpo_launch_title"))
        return nmpo_titleView
    }()
}
